<?php

error_reporting(E_ALL); 
ini_set("display_errors", 1); 

use Doctrine\Common\ClassLoader;

require './lib/Doctrine/Doctrine/Common/ClassLoader.php';

$classLoader = new ClassLoader('Doctrine', './lib/Doctrine/');

$classLoader->register();

$config = new \Doctrine\DBAL\Configuration();

$connectionParams['dbname'] = 'testing';
$connectionParams['user'] = 'test_user';
$connectionParams['password'] = '';
$connectionParams['host'] = 'localhost';
$connectionParams['driver'] = 'pdo_mysql';

$conn = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);

$statement = $conn->prepare('SELECT * FROM user');
$statement->execute();
$user = $statement->fetchAll();

var_dump($user);//*/

//var_dump($connectionParams);
?>
